- fixes an oversight in color definitions for insensitive style text on cards where contrast was insufficient
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8683
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3998>
// accent colors
$accent_borders_color: if($variant== 'light', st-darken(-st-accent-color, 20%), st-lighten(-st-accent-color, 30%));
+
+//
+// Special Case Colors
+//
+
+// increase contrast on insensitive_fg_color since card elements have a lighter background
+$card_insensitive_fg_color: if($variant =='light', darken($insensitive_fg_color, 5%), lighten($insensitive_fg_color, 9%));
\ No newline at end of file
// accent colors
$accent_borders_color: st-lighten(-st-accent-color, 30%);
+//
+// Special Case Colors
+//
+
+$card_insensitive_fg_color: $fg_color;
+
//
// High Contrast specific definitions
//
// event title
.events-title {
@extend %heading;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
padding-bottom: $base_padding;
}
.event-time {
@extend %numeric;
@extend %caption;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
}
}
.event-placeholder {
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
font-style: italic;
}
}
// title
.world-clocks-header {
@extend %heading;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
// change style when no world clocks are configured
&.no-world-clocks {
.world-clocks-timezone {
@extend %numeric;
@extend %caption;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
}
}
}
.weather-header {
@extend %heading;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
// change style when no location is configured
&.no-location {
// message header
.message-header {
spacing: $base_padding;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
padding:0 $base_padding;
// remove side padding to accommodate the close button
// Time label
.event-time {
@extend %caption;
- color: $insensitive_fg_color;
+ color: $card_insensitive_fg_color;
// Add bottom padding to align the app name with the time horizontally
padding-bottom: to_em(1px);